﻿using System;
using System.Collections.Generic;
using System.Text;
using EPiServer.Core;

namespace EPiMVC.Html
{
    public class DefaultPageListBuilder : IPageListBuilder
    {
        public string CreatePageList(IEnumerable<PageData> pages)
        {
            StringBuilder product = new StringBuilder();
            product.Append("<ul>");
            foreach (PageData page in pages)
            {
                product.Append("<li><a></a></li>");
            }
            product.Append("</ul>");

            return product.ToString();
        }
    }
}
